import Taro, { Component } from '@tarojs/taro'
import { View, Text,Image, Input } from '@tarojs/components'
import { AtTextarea } from 'taro-ui'
import './index.less'

export default class feedback extends Component {

  config = {
    navigationBarTitleText: '意见反馈',
    navigationBarBackgroundColor:'#2196f3',
    navigationBarTextStyle:'white'
  }
  
  constructor () {
    super(...arguments)
    this.state = {
      value: ''
    }
  }
  handleChange (event) {
    this.setState({
      value: event.target.value
    })
  }

  // componentWillMount () { }

  // componentDidMount () { }

  // componentWillUnmount () { }

  // componentDidShow () { }

  // componentDidHide () { }

  render () {
  
    return (
      <View className='feedback'>
        <AtTextarea
          count={false}
          value={this.state.value}
          onChange={this.handleChange.bind(this)}
          maxLength={200}
          placeholder='您的意见就是我们进步的动力！'
          height={305}
        />
        <View className='submit-box'>
          <Text className='submit'>提交</Text>
        </View>
      </View>
    )
  }
}

